package com.rmuti.programming.handlers;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.PlatformUI;

import com.rmuti.programming.ui.LoginView;

public class UserLoginAction implements IWorkbenchWindowActionDelegate {

	@Override
	public void run(IAction action) {
		System.out.println("user login action....");
		IWorkbench iWork = PlatformUI.getWorkbench();
		Display display = iWork.getDisplay();
		
		LoginView loginView = new LoginView(display);
		loginView.display();
		
	}

	@Override
	public void selectionChanged(IAction arg0, ISelection arg1) {

	}

	@Override
	public void dispose() {

	}

	@Override
	public void init(IWorkbenchWindow arg0) {

	}

}
